﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExecuteSQL.aspx.cs" Inherits="ExecuteSQL" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="sqlExecute" runat="server">
    <div>
        <asp:TextBox ID="txtSqlScript" runat="server" Wrap="True" TextMode="MultiLine" 
            Height="250px" Width="100%">T-SQL goes here...</asp:TextBox>
    </div>
    <div>
        Database: <asp:DropDownList ID="lstDatabases" runat="server">
        </asp:DropDownList>
        <asp:Button ID="btnExecuteSql" runat="server" Text="Execute!" 
            OnClick="ExecuteSqlButton_Click" BorderStyle="Groove" />
    </div>
    <div>
        <asp:TextBox ID="txtSqlResult" runat="server" Wrap="True" TextMode="MultiLine" 
            Height="250px" Width="100%" EnableViewState="False" ReadOnly="True" 
            ViewStateMode="Disabled">Results will appear here!</asp:TextBox>
    </div>
    </form>
</body>
</html>
